package com.airplane;

import java.util.*;

public class Passenger {

	
	public Passenger(String name,String allergy) {
		super();
		this.name = name;
		this.selectedMenu=null;
		this.allergy = allergy.toLowerCase();
	}
	private String allergy;
	public String getAllergy() {
		return allergy;
	}

	public void setAllergy(String allergy) {
		this.allergy = allergy.toLowerCase();
	}
	private AirplaneMenu selectedMenu;
	private String name;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	
	public AirplaneMenu getSelectedMenu() {
		return selectedMenu;
	}
	public void setSelectedMenu(AirplaneMenu selectedMenu) {
		this.selectedMenu = selectedMenu;
	}
	
	public String toString()
	{
		String output="Passenger: "+name +"\n"+selectedMenu;
			
		return output;
	}
}
